import storeList from './storeList.json'
import userList from './user.json'

export function getUsers() {
    return userList;
}


export function getRepoList(userId) {
    if (userId) {
        return storeList.filter(item => {
            return item.userId === userId;
        })
    } else {
        return storeList;
    }
}
export function getRepoListBykeyword(keyword) {
    if (keyword) {
        return storeList.filter(item => {
            return item.storeName.includes(keyword);
        })
    } else {
        return storeList;
    }
}
